class Review < ActiveRecord::Base
  belongs_to :user
  belongs_to :movie

  validates_presence_of :user
  validates_presence_of :movie
  validates_inclusion_of :score, :in => 1..5
  validates_uniqueness_of :user_id, :scope => :movie_id

  attr_accessible :movie, :user, :score
end
